import json

class UserInfo:
    email = ''
    name = ''
    password = ''
    qq = ''
    def __init__(self,email,name,password,qq):
        self.email = email
        self.name = name
        self.password = password
        self.qq = qq

    def __str__(self):
        print("用户的email 为{} , name 为 {} ,password 为 {} , qq 为 {}".format(self.email,self.name,self.password,self.qq))

users = {}
result_users = []
with open('./json.txt','rb') as f:
    users = json.loads(f.read())

for i in users:
    u = UserInfo(i['email'],i['name'],i['password'],i['qq'])
    result_users.append(u)

for i in result_users:
    i.__str__()